import VueRouter from 'vue-router'
// 导入路由组件
import home from './components/tabbar/HomeContainer.vue'
import rember from './components/tabbar/rember.vue'
import shopcar from './components/tabbar/ShopCar.vue'
import search from './components/tabbar/search.vue'

// 3. 创建路由对象
var router = new VueRouter({
    routes: [
        {path:'./home',component:HomeContainer},
        {path:'./rember',component:rember},
        {path:'./shopcar',component:ShopCar},
        {path:'./search',component:search}
    ]
    
})

// 把路由对象暴露出去
export default router